package com.b2b.service.impl;

import com.b2b.mapper.CompanyRoleMapper;
import com.b2b.model.entity.company.CompanyRole;
import com.b2b.service.CompanyRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class CompanyRoleServiceImpl extends BaseServiceImpl<CompanyRole> implements CompanyRoleService {

    @Autowired
    CompanyRoleMapper companyRoleMapper;

    public List<CompanyRole> selectCompanyRole(Integer roleId) {
        return companyRoleMapper.selectCompanyRole(roleId);
    }
}
